package com.hzvdvmc.autosale.util;

import android.text.TextUtils;

import com.hzvdvmc.autosale.constant.SpKey;

/**
 * Created by william on 2017/12/15.
 */

public class MachineUtil {
//    private static String machineNO = "FYAD17120001";
    private static String machineNO = "LZ7A1807TEST";
    private static int netStrength = 0;

    /*
  设备编号 真实的
   */
    public static String getDeviceNO() {
        String NO = SPUtils.getInstance().getString(SpKey.MACHINE_NO);
        if (TextUtils.isEmpty(NO)) {
            return machineNO;
        }
        return NO;
    }

    public static String getDoorState() {
        return "0";
    }

    public static String getNetStrength() {
        return ((char) netStrength) + "";
    }

    public static void setNetStrength(int netStrength) {
        MachineUtil.netStrength = netStrength;
    }
}
